package com.design.command.task;

// 命令接口
interface Command {
    void execute();
}

// 发送邮件命令
class EmailCommand implements Command {
    @Override
    public void execute() {
        System.out.println("Sending email...");
    }
}

// 生成报告命令
class ReportCommand implements Command {
    @Override
    public void execute() {
        System.out.println("Generating report...");
    }
}
